package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class Expenditure extends Personnel {
    private Long id;

    //支出分类
    private String category;


    private Integer amount;

    //数据传入使用日期类型
    @DateTimeFormat(pattern ="yyyy-MM-dd" )
    //转换成json格式的日期类型
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;

    private String staff;

    private String remark;

}